-- GENERATED SPELL FOR [Crazed Ancient] --


function spell0_3834(pUnit, Event) --@Curse of Thorns,n/a--
pUnit:FullCastSpellOnTarget(6909,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3834', 2000, 1)
end

function Sorts_3834(pUnit, Event)
local choix_sorts_3834 = math.random(0, 0)
if choix_sorts_3834 == 0 then
pUnit:RegisterEvent('spell0_3834', 1, 1)
end
end

function mob3834_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3834', math.random(1500, 3000), 1)
end

function mob3834_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3834_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3834_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3834, 1, 'mob3834_Action')
RegisterUnitEvent(3834, 2, 'mob3834_Leave')
RegisterUnitEvent(3834, 3, 'mob3834_Kill')
RegisterUnitEvent(3834, 4, 'mob3834_Die')
